<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>信达数据中心运维管理自动化平台</title>
    <meta name="keywords" content="信达数据中心运维管理自动化平台">
    <meta name="description" content="信达数据中心运维管理自动化平台">
    <link rel="shortcut icon" href="../favicon.ico">
    <link href="../../css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="../../css/font-awesome.css?v=4.4.0" rel="stylesheet">
    <link href="../../css/animate.css" rel="stylesheet">
    <!-- Data Tables -->
    <link href="../../css/plugins/dataTables/dataTables.bootstrap.css" rel="stylesheet">
    <link href="../../css/style.css?v=4.1.0" rel="stylesheet">
    <style type="text/css">
        .panel-body .col-sm-1 {
            width: 12.3%;
            text-align: center;
        }

        .panel-body .col-sm-2 {
            text-align: center;
        }

        .panel-body .col-sm-1 div,
        .panel-body .col-sm-2 div {
            color: #009999;
            font-size: 24px;
            font-weight: bold;

        }

        strong {
            color: #009999;
        }

        .modal-lg {
            width: 90%
        }

        .select .col-sm-1 {
            width: 10%;
        }

        th,
        td {
            white-space: nowrap;
        }
    </style>
</head>

<body class="gray-bg">
    <div class="wrapper wrapper-content animated fadeInRight">
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox">
                    <div class="ibox-title">
                        <h5>虚拟化监控概览</h5>
                    </div>
                    <div class="ibox-content">
                        <div class="row">
                            <div class="col-sm-8 bdr">
                                <div class="tabs-container">
                                    <ul class="nav nav-tabs">
                                        <li class="active"><a data-toggle="tab" href="#tab-1" aria-expanded="true">
                                                X86虚拟机概览</a>
                                        </li>
                                        <li class=""><a data-toggle="tab" href="#tab-2"
                                                aria-expanded="false">小型机虚拟机概览</a>
                                        </li>
                                    </ul>
                                    <div class="tab-content">
                                        <div id="tab-1" class="tab-pane active">
                                            <div class="panel-body">
                                                <div class="row" style="padding:0 30px;" id="tabChange1">
                                                </div>
                                            </div>
                                        </div>
                                        <div id="tab-2" class="tab-pane">
                                            <div class="panel-body">
                                                <div class="row" style="padding:0 50px;" id="tabChange2">
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="col-sm-4 mt30">
                                <div class="col-sm-4" style="padding:20px 0 0 40px;line-height: 24px;">
                                    <div>
                                        <span>告警总数目</span>
                                        <strong id="pan-tota">300</strong>
                                    </div>
                                    <div>
                                        <span>已处理告警</span>
                                        <strong id="pan-used">100</strong>
                                    </div>
                                    <div>
                                        <span>未处理告警</span>
                                        <strong id="pan-titleText">50</strong>
                                    </div>
                                </div>
                                <div class="col-sm-8">
                                    <div id="echarts-pan" class="echarts" style="height: 144px;width:100%"></div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="row">
            <div class="col-sm-12">
                <div class="ibox">
                    <div class="ibox-title">
                        <h5>监控信息详情</h5>
                    </div>
                    <div class="ibox-content fff">
                        <div class="tabs-container">
                            <ul class="nav nav-tabs">
                                <li class="active"><a data-toggle="tab" href="#tab-tabale1" aria-expanded="true">
                                        X86vCenterServer</a>
                                </li>
                                <li class=""><a data-toggle="tab" href="#tab-tabale2" aria-expanded="false">X86虚拟机</a>
                                </li>
                                <li class=""><a data-toggle="tab" href="#tab-tabale3" aria-expanded="false">X86主机系统</a>
                                </li>
                                <li class=""><a data-toggle="tab" href="#tab-tabale4" aria-expanded="false">X86集群资源</a>
                                </li>
                                <li class=""><a data-toggle="tab" href="#tab-tabale5" aria-expanded="false">X86数据存储</a>
                                </li>
                                <li class=""><a data-toggle="tab" href="#tab-tabale6"
                                        aria-expanded="false">X86VMware分布式交换机</a>
                                </li>
                                <li class=""><a data-toggle="tab" href="#tab-tabale7"
                                        aria-expanded="false">X86VMware分布式虚拟端口</a>
                                </li>
                                <li class=""><a data-toggle="tab" href="#tab-tabale8" aria-expanded="false">小型机虚拟化</a>
                                </li>
                            </ul>
                            <div class="tab-content">
                                <div id="tab-tabale1" class="tab-pane active">
                                    <div class="panel-body">
                                        <table class="table table-striped table-bordered table-hover dataTables1">
                                            <thead>
                                                <tr>
                                                    <th>编号</th>
                                                    <th>告警</th>
                                                    <th>应用系统名称</th>
                                                    <th>主机名称</th>
                                                    <th>IP地址</th>
                                                    <th>连接状态</th>
                                                    <th>责任人</th>
                                                    <th>联系方式</th>
                                                </tr>
                                            </thead>
                                            <tfoot>
                                                <tr>
                                                    <th>编号</th>
                                                    <th>告警</th>
                                                    <th>应用系统名称</th>
                                                    <th>主机名称</th>
                                                    <th>IP地址</th>
                                                    <th>连接状态</th>
                                                    <th>责任人</th>
                                                    <th>联系方式</th>
                                                </tr>
                                            </tfoot>
                                        </table>
                                    </div>
                                </div>
                                <div id="tab-tabale2" class="tab-pane">
                                    <div class="panel-body">
                                        <table class="table table-striped table-bordered table-hover dataTables2">
                                            <thead>
                                                <tr>
                                                    <th>编号</th>
                                                    <th>告警</th>
                                                    <th>应用系统名称</th>
                                                    <th>主机名称</th>
                                                    <th>IP地址</th>
                                                    <th>IO等待</th>
                                                    <th>CPU（%）</th>
                                                    <th>内存（%）</th>
                                                    <th>IO工作负载（%）</th>
                                                    <th>磁盘写入延迟（ms）</th>
                                                    <th>磁盘读取延迟（ms）</th>
                                                    <th>责任人</th>
                                                    <th>联系方式</th>
                                                </tr>
                                            </thead>
                                            <tfoot>
                                                <tr>
                                                    <th>编号</th>
                                                    <th>告警</th>
                                                    <th>应用系统名称</th>
                                                    <th>主机名称</th>
                                                    <th>IP地址</th>
                                                    <th>IO等待</th>
                                                    <th>CPU（%）</th>
                                                    <th>内存（%）</th>
                                                    <th>IO工作负载（%）</th>
                                                    <th>磁盘写入延迟（ms）</th>
                                                    <th>磁盘读取延迟（ms）</th>
                                                    <th>责任人</th>
                                                    <th>联系方式</th>
                                                </tr>
                                            </tfoot>
                                        </table>
                                    </div>
                                </div>
                                <div id="tab-tabale3" class="tab-pane">
                                    <div class="panel-body">
                                        <table class="table table-striped table-bordered table-hover dataTables3">
                                            <thead>
                                                <tr>
                                                    <th>编号</th>
                                                    <th>告警</th>
                                                    <th>应用系统名称</th>
                                                    <th>主机名称</th>
                                                    <th>IP地址</th>
                                                    <th>CPU（%）</th>
                                                    <th>内存（%）</th>
                                                    <th>IO工作负载（%）</th>
                                                    <th>责任人</th>
                                                    <th>联系方式</th>
                                                </tr>
                                            </thead>
                                            <tfoot>
                                                <tr>
                                                    <th>编号</th>
                                                    <th>告警</th>
                                                    <th>应用系统名称</th>
                                                    <th>主机名称</th>
                                                    <th>IP地址</th>
                                                    <th>CPU（%）</th>
                                                    <th>内存（%）</th>
                                                    <th>IO工作负载（%）</th>
                                                    <th>责任人</th>
                                                    <th>联系方式</th>
                                                </tr>
                                            </tfoot>
                                        </table>
                                    </div>
                                </div>
                                <div id="tab-tabale4" class="tab-pane">
                                    <div class="panel-body">
                                        <table class="table table-striped table-bordered table-hover dataTables4">
                                            <thead>
                                                <tr>
                                                    <th>编号</th>
                                                    <th>告警</th>
                                                    <th>应用系统名称</th>
                                                    <th>主机名称</th>
                                                    <th>IP地址</th>
                                                    <th>CPU（%）</th>
                                                    <th>内存（%）</th>
                                                    <th>责任人</th>
                                                    <th>联系方式</th>
                                                </tr>
                                            </thead>
                                            <tfoot>
                                                <tr>
                                                    <th>编号</th>
                                                    <th>告警</th>
                                                    <th>应用系统名称</th>
                                                    <th>主机名称</th>
                                                    <th>IP地址</th>
                                                    <th>CPU（%）</th>
                                                    <th>内存（%）</th>
                                                    <th>责任人</th>
                                                    <th>联系方式</th>
                                                </tr>
                                            </tfoot>
                                        </table>
                                    </div>
                                </div>
                                <div id="tab-tabale5" class="tab-pane">
                                    <div class="panel-body">
                                        <table class="table table-striped table-bordered table-hover dataTables5">
                                            <thead>
                                                <tr>
                                                    <th>编号</th>
                                                    <th>告警</th>
                                                    <th>应用系统名称</th>
                                                    <th>主机名称</th>
                                                    <th>IP地址</th>
                                                    <th>已使用空间（%）</th>
                                                    <th>工作负载（%）</th>
                                                    <th>磁盘命令延迟（ms）</th>
                                                    <th>责任人</th>
                                                    <th>联系方式</th>
                                                </tr>
                                            </thead>
                                            <tfoot>
                                                <tr>
                                                    <th>编号</th>
                                                    <th>告警</th>
                                                    <th>应用系统名称</th>
                                                    <th>主机名称</th>
                                                    <th>IP地址</th>
                                                    <th>已使用空间（%）</th>
                                                    <th>工作负载（%）</th>
                                                    <th>磁盘命令延迟（ms）</th>
                                                    <th>责任人</th>
                                                    <th>联系方式</th>
                                                </tr>
                                            </tfoot>
                                        </table>
                                    </div>
                                </div>
                                <div id="tab-tabale6" class="tab-pane">
                                    <div class="panel-body">
                                        <table class="table table-striped table-bordered table-hover dataTables6">
                                            <thead>
                                                <tr>
                                                    <th>编号</th>
                                                    <th>告警</th>
                                                    <th>应用系统名称</th>
                                                    <th>主机名称</th>
                                                    <th>IP地址</th>
                                                    <th>阻止的端口数量</th>
                                                    <th>配置与vCenter不同步</th>
                                                    <th>不支持的 vLAN</th>
                                                    <th>MTU不匹配</th>
                                                    <th>责任人</th>
                                                    <th>联系方式</th>
                                                </tr>
                                            </thead>
                                            <tfoot>
                                                <tr>
                                                    <th>编号</th>
                                                    <th>告警</th>
                                                    <th>应用系统名称</th>
                                                    <th>主机名称</th>
                                                    <th>IP地址</th>
                                                    <th>阻止的端口数量</th>
                                                    <th>配置与vCenter不同步</th>
                                                    <th>不支持的 vLAN</th>
                                                    <th>MTU不匹配</th>
                                                    <th>责任人</th>
                                                    <th>联系方式</th>
                                                </tr>
                                            </tfoot>
                                        </table>
                                    </div>
                                </div>
                                <div id="tab-tabale7" class="tab-pane">
                                    <div class="panel-body">
                                        <table class="table table-striped table-bordered table-hover dataTables7">
                                            <thead>
                                                <tr>
                                                    <th>编号</th>
                                                    <th>告警</th>
                                                    <th>应用系统名称</th>
                                                    <th>主机名称</th>
                                                    <th>IP地址</th>
                                                    <th>丢弃数据包百分比（%）</th>
                                                    <th>责任人</th>
                                                    <th>联系方式</th>
                                                </tr>
                                            </thead>
                                            <tfoot>
                                                <tr>
                                                    <th>编号</th>
                                                    <th>告警</th>
                                                    <th>应用系统名称</th>
                                                    <th>主机名称</th>
                                                    <th>IP地址</th>
                                                    <th>丢弃数据包百分比（%）</th>
                                                    <th>责任人</th>
                                                    <th>联系方式</th>
                                                </tr>
                                            </tfoot>
                                        </table>
                                    </div>
                                </div>
                                <div id="tab-tabale8" class="tab-pane">
                                    <div class="panel-body">
                                        <table class="table table-striped table-bordered table-hover dataTables8">
                                            <thead>
                                                <tr>
                                                    <th>编号</th>
                                                    <th>告警</th>
                                                    <th>应用系统名称</th>
                                                    <th>主机名称</th>
                                                    <th>IP地址</th>
                                                    <th>CPU利用率</th>
                                                    <th>内存利用率</th>
                                                    <th>磁盘利用率</th>
                                                    <th>文件系统利用率</th>
                                                    <th>Ping通断性</th>
                                                    <th>责任人</th>
                                                    <th>联系方式</th>
                                                </tr>
                                            </thead>
                                            <tfoot>
                                                <tr>
                                                    <th>编号</th>
                                                    <th>告警</th>
                                                    <th>应用系统名称</th>
                                                    <th>主机名称</th>
                                                    <th>IP地址</th>
                                                    <th>CPU利用率</th>
                                                    <th>内存利用率</th>
                                                    <th>磁盘利用率</th>
                                                    <th>文件系统利用率</th>
                                                    <th>Ping通断性</th>
                                                    <th>责任人</th>
                                                    <th>联系方式</th>
                                                </tr>
                                            </tfoot>
                                        </table>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <!-- 模态框-->
        <div class="modal inmodal fade" id="change" tabindex="-1" role="dialog" aria-hidden="true">
            <div class="modal-dialog modal-lg">
                <div class="modal-content">
                    <div class="modal-header">
                        <button type="button" class="close" data-dismiss="modal"><span
                                aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                        <h4 class="modal-title">告警</h4>
                    </div>
                    <div class="modal-body" style="text-align: center">
                        <div id="tab-tabale" class="tab-pane active">
                            <div class="row select">
                                <div class="col-sm-12">
                                    <div class="col-sm-1">
                                        <div class="form-group">
                                            <select class="form-control m-b" name="account">
                                                <option>应用系统</option>
                                                <option>应用系统</option>
                                                <option>应用系统</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-sm-1">
                                        <div class="form-group">
                                            <select class="form-control m-b" name="account">
                                                <option>2019.4.5</option>
                                                <option>2019.4.5</option>
                                                <option>2019.4.5</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-sm-1">
                                        <div class="form-group">
                                            <select class="form-control m-b" name="account">
                                                <option>应用系统</option>
                                                <option>应用系统</option>
                                                <option>应用系统</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" placeholder="IP地址">
                                    </div>
                                    <div class="col-sm-1">
                                        <input type="text" class="form-control" placeholder="主机名称">
                                    </div>
                                    <div class="col-sm-1">
                                        <div class="form-group">
                                            <select class="form-control m-b" name="account">
                                                <option>最近时间</option>
                                                <option>2019.5.23</option>
                                                <option>2019.5.23</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-sm-1">
                                        <div class="form-group">
                                            <select class="form-control m-b" name="account">
                                                <option>开始时间</option>
                                                <option>2019.5.23</option>
                                                <option>2019.5.23</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-sm-1">
                                        <div class="form-group">
                                            <select class="form-control m-b" name="account">
                                                <option>结束时间</option>
                                                <option>2019.5.23</option>
                                                <option>2019.5.23</option>
                                            </select>
                                        </div>
                                    </div>
                                    <div class="col-sm-2 ml30">
                                        <div class="col-sm-6">
                                            <button type="button" class="btn btn-default reset">重置</button>
                                        </div>
                                        <div class="col-sm-6">
                                            <button type="button" class="btn btn-primary search">搜索</button>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="panel-body">
                                <table class="table table-striped table-bordered table-hover dataTablesModal">
                                    <thead>
                                        <tr>
                                            <th>事件等级</th>
                                            <th>发生时间</th>
                                            <th>事件描述</th>
                                            <th>主机IP</th>
                                            <th>主机名</th>
                                            <th>所属系统</th>
                                            <th>事件状态</th>
                                            <th>操作</th>
                                        </tr>
                                    </thead>
                                    <tfoot>
                                        <tr>
                                            <th>事件等级</th>
                                            <th>发生时间</th>
                                            <th>事件描述</th>
                                            <th>主机IP</th>
                                            <th>主机名</th>
                                            <th>所属系统</th>
                                            <th>事件状态</th>
                                            <th>操作</th>
                                        </tr>
                                    </tfoot>
                                </table>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
    <!-- 基础js -->
    <script src="../../js/jquery.min.js?v=2.1.4"></script>
    <script src="../../js/bootstrap.min.js?v=3.3.6"></script>
    <script src="../../js/content.js?v=1.0.0"></script>
    <!-- 插件js -->
    <script src="../../js/handlebars-v3.0.1.js"></script>
    <script src="../../js/plugins/echarts/echarts-all.js"></script>
    <!-- Data Tables -->
    <script src="../../js/plugins/dataTables/jquery.dataTables.js"></script>
    <script src="../../js/plugins/dataTables/dataTables.bootstrap.js"></script>
    <!-- 模板 -->
    <script id="tpl" type="text/x-handlebars-template">

        {{#each func}}
        <button type="button" class="btn btn-{{this.type}} btn-sm" onclick="{{this.fn}}">{{this.name}}</button>
        {{/each}}

        {{#each tabChange1}}
        <div class="col-sm-1">
            <div>
                {{num}}
            </div>
            <p>{{name}}</p>
        </div>
        {{/each}}

        {{#each tabChange2}}
        <div class="col-sm-2">
            <div>
                {{num}}
            </div>
            <p>{{name}}</p>
        </div>
        {{/each}}

    </script>

    <!-- 模板 -->
    <script type="text/javascript">
        $(function () {

            // Handlebars模板引擎数据
            var tpl = $("#tpl").html(); //用jquery获取模板
            var template = Handlebars.compile(tpl); //预编译模板

            // x86虚拟机概览
            $.ajax({
                // url: 'http://192.168.0.82:8888/vmMit/x86VMAll',
                url: 'json/ctrl_virtual/x86虚拟机概览.json',
                type: 'GET',
                dataType: 'json',
                success: function (response) {
                    var tabChange1HtmlContext = { "tabChange1": response };
                    var tabChange1Html = template(tabChange1HtmlContext);
                    $("#tabChange1").html(tabChange1Html);
                }
            });

            // 小型机虚拟机概览
            $.ajax({
                // url: 'http://192.168.0.82:8888/vmMit/miniVMAll',
                url: 'json/ctrl_virtual/小型机虚拟机概览.json',
                type: 'GET',
                dataType: 'json',
                success: function (response) {
                    var tabChange2HtmlContext = { "tabChange2": response };
                    var tabChange2Html = template(tabChange2HtmlContext);
                    $("#tabChange2").html(tabChange2Html);
                }
            });

            // 仪表盘
            var pan = echarts.init(document.getElementById('echarts-pan'));
            var panelOption;
            $.ajax({
                // url: 'http://192.168.0.82:8888/vmMit/solved',
                url: 'json/ctrl_virtual/panel.json',
                type: 'GET',
                dataType: 'json',
                success: function (response) {
                    $("#pan-tota").html(response.tota);
                    $("#pan-used").html(response.used);
                    $("#pan-titleText").html(response.titleText);
                    panFun(response.seriesDATA);
                    pan.setOption(panelOption);
                    $(window).resize(pan.resize);
                }
            });
            function panFun(panData) {
                panelOption = {
                    grid: {
                        top: '30%',
                        left: '40%',
                        right: '4%',
                        bottom: '20%',
                        containLabel: false
                    },
                    series: [{
                        startAngle: 190, //开始角度 左侧角度
                        endAngle: -10, //结束角度 右
                        type: 'gauge', // 系列类型，仪表盘类型
                        title: { // 仪表盘标题。
                            offsetCenter: [0, "70%"], //相对于仪表盘中心的偏移位置
                            color: "#000", // 文字的颜色,默认 #333。
                            fontSize: 16, // 文字的字体大小,默认 15。
                        },
                        axisTick: {
                            splitNumber: 2, // 分隔线之间分割的刻度数,默认 5
                            length: 5, // 刻度线长。支持相对半径的百分比,默认 8。
                        },
                        splitNumber: 10, // 仪表盘刻度的分割段数,默认 10
                        detail: { // 仪表盘详情，用于显示数据
                            formatter: '{value}%', // 格式化函数或者字符串
                            offsetCenter: [0, "30%"], // 相对于仪表盘中心的偏移位置
                            fontSize: 18, // 文字的字体大小
                            color: "#000000" // 文字的颜色,
                        },
                        radius: "100%", //仪表大小
                        axisLine: { // 仪表盘轴线(轮廓线)相关配置
                            lineStyle: { // 仪表盘轴线样式
                                width: 12 // 仪表盘轴线宽度
                            }
                        },
                        axisLabel: { // 刻度标签。
                            distance: 1, // 标签与刻度线的距离,默认 5。
                            fontSize: 10, // 刻度的文字字体大小,默认 5。
                        },
                        splitLine: { // 分隔线样式。
                            length: 20, // 分隔线线长，默认30
                        },
                        pointer: { // 仪表盘指针。
                            length: "80%", // 指针长度，可以是绝对数值，也可以是相对于半径的百分比,默认 80%。
                            width: 5, // 指针宽度,默认 8。
                        },
                        data: panData
                    }]
                };
            }

            // 表格：X86vCenterServer
            $('.dataTables1').DataTable({
                " dom": "lfrtip",
                // "ajax": 'http://192.168.0.82:8888/vmMit/x86vCenter',
                "ajax": 'json/ctrl_virtual/X86vCenterServer.json',
                "columns": [
                    { "data": "id" },
                    { "data": "rank" },
                    { "data": "operationSysName" },
                    { "data": "hostName" },
                    { "data": "hostIp" },
                    { "data": "connection" },
                    { "data": "person" },
                    { "data": "telephone" },
                ]
            });
            $(".dataTables1").wrapAll("<div style='overflow-x:auto'>");

            // 表格：X86虚拟机
            $('.dataTables2').DataTable({
                " dom": "lfrtip",
                // "ajax": 'http://192.168.0.82:8888/vmMit/x86VM',
                "ajax": 'json/ctrl_virtual/X86虚拟机.json',
                "columns": [
                    { "data": "id" },
                    { "data": "rank" },
                    { "data": "operationSysName" },
                    { "data": "hostName" },
                    { "data": "hostIp" },
                    { "data": "ioWait" },
                    { "data": "cpuPer" },
                    { "data": "memoryPer" },
                    { "data": "ioLoadPer" },
                    { "data": "diskWriteDelay" },
                    { "data": "diskReadDelay" },
                    { "data": "person" },
                    { "data": "telephone" },
                ]
            });
            $(".dataTables2").wrapAll("<div style='overflow-x:auto'>");

            // 表格：X86主机系统
            $('.dataTables3').DataTable({
                " dom": "lfrtip",
                // "ajax": 'http://192.168.0.82:8888/vmMit/x86Host',
                "ajax": 'json/ctrl_virtual/X86主机系统.json',
                "columns": [
                    { "data": "id" },
                    { "data": "rank" },
                    { "data": "operationSysName" },
                    { "data": "hostName" },
                    { "data": "hostIp" },
                    { "data": "cpuPer" },
                    { "data": "memoryPer" },
                    { "data": "ioLoadPer" },
                    { "data": "person" },
                    { "data": "telephone" },
                ]
            });
            $(".dataTables3").wrapAll("<div style='overflow-x:auto'>");

            // 表格：X86集群资源
            $('.dataTables4').DataTable({
                " dom": "lfrtip",
                // "ajax": 'http://192.168.0.82:8888/vmMit/x86Cluster',
                "ajax": 'json/ctrl_virtual/X86集群资源.json',
                "columns": [
                    { "data": "id" },
                    { "data": "rank" },
                    { "data": "operationSysName" },
                    { "data": "hostName" },
                    { "data": "hostIp" },
                    { "data": "cpuPer" },
                    { "data": "memoryPer" },
                    { "data": "person" },
                    { "data": "telephone" },
                ]
            });
            $(".dataTables4").wrapAll("<div style='overflow-x:auto'>");

            // 表格：X86数据存储
            $('.dataTables5').DataTable({
                " dom": "lfrtip",
                // "ajax": 'http://192.168.0.82:8888/vmMit/x86Storage',
                "ajax": 'json/ctrl_virtual/X86数据存储.json',
                "columns": [
                    { "data": "id" },
                    { "data": "rank" },
                    { "data": "operationSysName" },
                    { "data": "hostName" },
                    { "data": "hostIp" },
                    { "data": "usedSpacePer" },
                    { "data": "ioLoadPer" },
                    { "data": "diskCommandDelay" },
                    { "data": "person" },
                    { "data": "telephone" },
                ]
            });
            $(".dataTables5").wrapAll("<div style='overflow-x:auto'>");

            // 表格：X86VMware分布式交换机
            $('.dataTables6').DataTable({
                " dom": "lfrtip",
                // "ajax": 'http://192.168.0.82:8888/vmMit/x86VMSwitch',
                "ajax": 'json/ctrl_virtual/X86VMware分布式交换机.json',
                "columns": [
                    { "data": "id" },
                    { "data": "rank" },
                    { "data": "operationSysName" },
                    { "data": "hostName" },
                    { "data": "hostIp" },
                    { "data": "blockedPortNum" },
                    { "data": "outSyncVCenter" },
                    { "data": "noVLAN" },
                    { "data": "noMTU" },
                    { "data": "person" },
                    { "data": "telephone" },
                ]
            });
            $(".dataTables6").wrapAll("<div style='overflow-x:auto'>");

            // 表格：X86VMware分布式虚拟端口
            $('.dataTables7').DataTable({
                " dom": "lfrtip",
                // "ajax": 'http://192.168.0.82:8888/vmMit/x86VMPort',
                "ajax": 'json/ctrl_virtual/X86VMware分布式虚拟端口.json',
                "columns": [
                    { "data": "id" },
                    { "data": "rank" },
                    { "data": "operationSysName" },
                    { "data": "hostName" },
                    { "data": "hostIp" },
                    { "data": "lossPacketPer" },
                    { "data": "person" },
                    { "data": "telephone" },
                ]
            });
            $(".dataTables7").wrapAll("<div style='overflow-x:auto'>");

            // 表格：小型机虚拟化
            $('.dataTables8').DataTable({
                " dom": "lfrtip",
                // "ajax": 'http://192.168.0.82:8888/vmMit/miniVM',
                "ajax": 'json/ctrl_virtual/小型机虚拟化.json',
                "columns": [
                    { "data": "id" },
                    { "data": "rank" },
                    { "data": "operationSysName" },
                    { "data": "hostName" },
                    { "data": "hostIp" },
                    { "data": "cpuPer" },
                    { "data": "memoryPer" },
                    { "data": "diskPer" },
                    { "data": "fileSysPer" },
                    { "data": "connection" },
                    { "data": "person" },
                    { "data": "telephone" },
                ]
            });
            $(".dataTables8").wrapAll("<div style='overflow-x:auto'>");

            // 查看告警处理率
            $("#echarts-pan").click(function () {
                $('#change').modal("show");
            });

            // 仪表盘弹窗
            var myEditor = $('.dataTablesModal').DataTable({
                " dom": "lfrtip",
                "ajax": 'http://192.168.0.82:8888/vmMit/warn',
                // "ajax": 'json/ctrl_virtual/panel弹窗.json',
                "columns": [
                    { "data": "rank" },
                    { "data": "occurTime" },
                    { "data": "particulars" },
                    { "data": "ip" },
                    { "data": "hostName" },
                    { "data": "operationSystermName" },
                    { "data": "state" },
                    { "data": "id" },
                ],
                columnDefs: [{
                    targets: 7, //point to four column
                    render: function (a, b, c, d) { //render that get data from source
                        var context = {
                            func: [
                                { "name": "删除", "fn": "del(\'" + c.id9 + "\')", "type": "danger" }
                            ]
                        };
                        var html = template(context); //匹配内容
                        return html;
                    }
                }
                ]
            });

        })
    </script>
</body>

</html>